<template>
  <div class="report-manage w-full h-full no-scroll">
    <word-report v-if="realParams && realParams.type === 'Word报表'" :params="realParams" class="report-detail w-full h-full"/>
    <run-qian-report v-else-if="realParams && realParams.type === 'Dap4.3报表'" :params="realParams" class="report-detail w-full h-full"/>
    <div v-else class="w-full h-full display-flex">
      <h1 class="f30">暂不支持的类型</h1>
    </div>
  </div>
</template>

<script>
import RunQianReport from '@c/Report/RunQianReport'
import WordReport from '@c/Report/WordReport'

export default {
  name: 'ReportManage',
  components: { WordReport, RunQianReport },
  props: {
    params: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data () {
    return {
      realParams: null
    }
  },
  mounted () {
    this.realParams = this._.cloneDeep(this.params)
  },
  methods: {
    setParams (params) {
      this.realParams = null
      this.realParams = params
    }
  }
}
</script>

<style scoped>

</style>
